<template>
	<view style="text-align: center;padding:120rpx 60rpx;">
		<image src="../../static/logo.png" mode="" style="width: 200rpx;height: 200rpx;"></image>
		<p style="font-weight: bold;font-size: 45rpx;margin-top: 40rpx;">面视频，全免费</p>
		<p style="font-size: 30rpx;color: #666;margin-top: 20rpx;">仅支持安卓设备</p>
		<div style="margin-top: 120rpx;">
			<uv-button text="立 即 下 载 面 视 频" shape="circle" size='large' @click="toDown"
				color="linear-gradient(to right, rgb(3, 200, 212), rgb(3, 200, 212))"></uv-button>
		</div>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				iswx: false
			}
		},
		onShow() {
			setTimeout(() => window.location.href = 'mianVideo://', 200)
			// setTimeout(() => window.location.href = 'hbuilder://', 200)
			// uni.showToast({
			// 	title: '正在跳转下载',
			// 	duration: 2000,
			// 	icon: 'none'
			// });
			this.iswx = (this.isWeixin())
			if (this.iswx) {
				uni.showToast({
					icon: 'none',
					title: '点击右上角 ··· 在浏览器中打开后下载',
					duration: 3000
				})
			}
		},
		methods: {
			toDown() {
				if (this.iswx) {
					uni.showToast({
						icon: 'none',
						title: '点击右上角 ··· 在浏览器中打开后下载',
						duration: 3000
					})
					return
				}
				window.open('https://www.123pan.com/s/7krLVv-db1Gd.html')
			},
			isWeixin() {
				var ua = window.navigator.userAgent.toLowerCase();
				if (ua.match(/MicroMessenger/i) == 'micromessenger' || ua.match(/_SQ_/i) == '_sq_') {
					return true;
				} else {
					return false;
				}
			}
		}
	}
</script>

<style>

</style>